import request from '@/axios/axios.js'

// 查询
export const searchApi = (params) => {
    return request({
        method: 'get',
        url: '/dms/pushRule/page',
        params: params
    })
}

// 增加
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/pushRule/add',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/pushRule/update',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/pushRule/delete',
        data: params
    })
}

// 导出
export const  exportApi= (params) => {
    return request({
        method: 'get',
        url: '/dms/pushRule/export',
        responseType: 'blob',
        params: params
    })
}

// 详情
export const detailApi = (params) => {
    return request({
        method: 'get',
        url: '/dms/pushRule/findDetailById',
        params: params
    })
}

// 启用/禁用
export const disabled = (params) => {
    return request({
        method: 'post',
        url: '/dms/pushRule/disabled',
        params: params
    })
}


